package com.ssm.mall.dao;

import com.ssm.mall.dao.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(@Param("username")String username,@Param("password") String password);

    int checkValid(@Param("name")String name);

    User forgetGetQuestion(@Param("username") String username);
}